//
//  UIColor+Extension.h
//  Fht
//
//  Created by allenmedia on 13-5-29.
//  Copyright (c) 2013年 allenmedia. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIColor (Extension)

/**获取一个随机颜色**/
+ (UIColor *)randomColor;
/**获取一个16进制颜色**/
+ (UIColor *)colorWithRGBHex:(UInt32)hex;
/**获取一个16进制颜色**/
+ (UIColor *)colorWithRGBHex:(UInt32)hex alpha:(CGFloat)alpha;
/**获取一个16进制颜色**/
+ (UIColor *)colorWithHexString:(NSString *)stringToConvert;
/**获取一个rgb颜色**/
+(UIColor *)colorWithFloatRGBRed:(CGFloat)r green:(CGFloat)g blue:(CGFloat)b alpha:(CGFloat)a;

/**
 通用颜色字符串 16进制字符串或颜色哈希字符串 "0xffffff" 或 "#ffffff"
 **/
+ (UIColor *) colorWithGeneralHexStr: (NSString *)colorStr;

+ (void)test_;
@end
